projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e25e1c5
)
headerbar: don't measure own size
author
Timm Bäder
<mail@baedert.org>
Fri, 30 Jun 2017 09:49:41 +0000
(11:49 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000
(21:27 -0400)
This is fallout from an earlier commit, we should be checking the
child's size of course, not repeatedly the headerbar's.
gtk/gtkheaderbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkheaderbar.c
b/gtk/gtkheaderbar.c
index f4bcda64813eb65628d9fdf3c3eef8879c0bfc43..e415a4c2f1ab9cb9dd13e0f70d26763a6b5f7928 100644
(file)
--- a/
gtk/gtkheaderbar.c
+++ b/
gtk/gtkheaderbar.c
@@
-701,7
+701,7
@@
gtk_header_bar_compute_size_for_orientation (GtkWidget *widget,
if (gtk_widget_get_visible (child->widget))
{
- gtk_widget_measure (widget, GTK_ORIENTATION_HORIZONTAL, avail_size,
+ gtk_widget_measure (
child->
widget, GTK_ORIENTATION_HORIZONTAL, avail_size,
&child_size, &child_natural, NULL, NULL);
required_size += child_size;